﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace SpringNetInvestigation.IoC
{
    public class Product
    {
        #region Properties

        public int ID { get; set; }
        public string Name { get; set; }
        public string Company { get; set; }

        #endregion

        public override bool Equals(object obj)
        {
            if (obj is Product)
            {
                return Equals(obj as Product);
            }
            return base.Equals(obj);
        }

        public bool Equals(Product product)
        {
            return ID == product.ID;
        }
    }
}
